﻿using System.Collections.Generic;
using System.Web.Routing;

namespace cludg.Web.Core.Menu
{
	public abstract class MenuDefinitionBase
	{
		private readonly List<MenuItemDefinition> _items = new List<MenuItemDefinition>();
		public List<MenuItemDefinition> Items { get { return _items; } }
	}

	public class MenuItemDefinition : MenuDefinitionBase
	{
		public string Id { get; set; }
		public string Caption { get; set; }
		public string PermissionName { get; set; }

		public int Index { get; set; }

		public string ControllerName { get; set; }
		public string ActionName { get; set; }
		public RouteValueDictionary RouteValues { get; set; }
	}

	public class MenuDefinition : MenuDefinitionBase
	{
	}
}
